import mockjs from "mockjs";

// 引入 json 数据
import banner from "@/mock/banner";
import floor from "@/mock/floor";
import address from "@/mock/address";

// 创建 mock 接口
mockjs.mock("/mock-api/banner", "get", () => {
  return {
    code: 200,
    data: banner,
  };
});

mockjs.mock("/mock-api/floor", () => {
  return {
    code: 200,
    data: floor,
  };
});

mockjs.mock("/mock-api/address", () => {
  return {
    code: 200,
    data: address,
  };
});
